<?php
/**
 * Created by PhpStorm.
 * User: Agiri
 * Date: 10/03/2015
 * Time: 13:47
 */

class ControleurPaypal {

    public static function afficherRecap(){
        include(Chemins::VUES . "v_recapCmd.php");
    }

    public static function afficherAnnulation(){
        VariablesGlobales::$message = "La transaction a été interrompue, commande annulée";
        include(Chemins::VUES . "v_erreur.php");
    }

    public static function verifierPaiement(){
        if(Paypal::checkPayment())
        {
            Panier::vider();
        }
    }

}